﻿@{
    ViewBag.Title = "报名事物处理";
}

<h2><strong>赴日技能实习生报名流程处理</strong></h2>
<p class="rAdminStep">第一步／实习生查询</p>
<p>
    报名流程阶段选择：@Html.DropDownList("flowStepList")
    <button type="button" class="btn btn-primary btn-sm" id="btnFilterLog">实习生筛选</button>
</p>
<p>
    <button type="button" class="btn btn-primary btn-sm" id="btnSelectAll">全部选中</button>
    <button type="button" class="btn btn-primary btn-sm" id="btnCancelAll">全部取消</button>
</p>
<div>
    <table class="table table-hover" id="tbFlowLog">
        <thead>
            <tr>
                <th>选择</th>
                <th>用户ID</th>
                <th>用户名称</th>
                <th>当前阶段</th>
                <th>联系电话</th>
                <th>联系地址</th>
                <th>实习生操作结果</th>
                <th>实习生操作时间</th>
                <th>平台操作时间</th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>
    <div id="pp" class="pagination"></div>
</div>

<p class="rAdminStep">第一步／选中的实习生转入下一流程、平台发送通知消息</p>
<div class="divMessageSend">
    <form class="form-horizontal" role="form">
        <div class="form-group">
            <label class="col-sm-2 control-label">办理起止时间:</label>
            <div class="col-sm-8">
                <input type="text" id="Sdate" class="date_txt input_font Wdate" />
                ~<input type="text" id="Edate" class="date_txt input_font Wdate" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">消息正文:</label>
            <div class="col-sm-8">
                <textarea cols="100" rows="5" id="textMessage">

                </textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" class="btn btn-primary" id="btnGoNextStep">转入下一流程，发送消息通知</button>
            </div>
        </div>
    </form>

</div>

<script id="FlowLog-template" type="text/x-handlebars-template">
    {{#each logs}}
            <tr>
                <td>
                    <input type='checkbox' class='checkFlog' data-flowstepname="{{FlowStepName}}" data-flowlogid="{{FlowLogId}}" /></td>
                <td class="tdViewSelfInfo" data-dialoginfo="{{logHideInfo this}}">{{UserId}}</td>
                <td class="tdViewSelfInfo" data-dialoginfo="{{logHideInfo this}}">{{UserName}}</td>
                <td class="tdViewCheck" data-logid="{{FlowLogId}}">{{FlowStepName}}</td>
                <td class="tdViewCheck" data-logid="{{FlowLogId}}">{{Mobile}}</td>
                <td class="tdViewCheck" data-logid="{{FlowLogId}}">{{Address}}</td>
                <td class="tdViewCheck" data-logid="{{FlowLogId}}">{{State}}</td>
                <td class="tdViewCheck" data-logid="{{FlowLogId}}">{{SubmitDate}}</td>
                <td class="tdViewCheck" data-logid="{{FlowLogId}}">{{HandlerDate}}</td>
            </tr>
    {{/each}}
</script>

<script id="logUserInfo-template" type="text/x-handlebars-template">
    <div id="divlogUserInfo">
        <p>
            <label for="UserId" class="logUserInfoLabel">用户编号：</label>
            <span id="UserId">{{UserId}}</span>
            <label for="UserName" class="logUserInfoLabel">用户名称：</label>
            <span id="UserName">{{UserName}}</span>
        </p>
        <p>
            <label for="FlowStepName" class="logUserInfoLabel">当前阶段：</label>
            <span id="FlowStepName">{{FlowStepName}}</span>
        </p>
        <p>
            <label for="startAndEnd" class="logUserInfoLabel">起止时间：</label>
            <span id="startAndEnd">{{Sdate}}~{{Edate}}</span>
        </p>
        <hr />
        <p>
            <label for="RolerName" class="logUserInfoLabel">用户角色：</label>
            <span id="RolerName">{{RolerName}}</span>
        </p>
        <p>
            <label for="Sex" class="logUserInfoLabel">用户性别：</label>
            <span id="Sex">{{Sex}}</span>
        </p>
        <p>
            <label for="Address" class="logUserInfoLabel">用户地址：</label>
            <span id="Address">{{Address}}</span>
        </p>
        <p>
            <label for="Mobile" class="logUserInfoLabel">用户电话：</label>
            <span id="Mobile">{{Mobile}}</span>
        </p>
    </div>
</script>



@section scripts
{
    @Scripts.Render("~/bundles/JSTmp")
    @Scripts.Render("~/bundles/Page")
    @Scripts.Render("~/bundles/WdatePicker")
    @Scripts.Render("~/bundles/RegistHandler")
}



